package com.sh.rbac.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 操作日志记录实体类
 *
 * @author lucky
 */

@Data
public class OperationLog implements Serializable {

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private String operationUsername;
    private String operationModule;
    private Integer operationType;
    private String operationMethod;
    private String operationParams;
    private String operationUrl;
    private String requestMethod;
    private String operationIp;
    private Date operationTime;
    private Integer operationStatus;
    private String operationResult;
    private Integer requestTime;
    private String errorMsg;

    @TableLogic
    private Integer isDeleted;

}